package com.xiaohao.communication.neo4j_dao;

import com.xiaohao.communication.neo4j_bean.Topic;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;

public interface TopicNodeDao extends Neo4jRepository<Topic, Long> {


    /**
     * @param topic_id
     * @return
     */
    @Query("match (n {topic:{topic_id}}) return n")
    public Topic findTopicByTopic_id(@Param("topic_id") String topic_id);

}
